/*---------------------------------------------------------------------------------------------
 *  Copyright (c) Microsoft Corporation. All rights reserved.
 *  Licensed under the MIT License. See License.txt in the project root for license information.
 *--------------------------------------------------------------------------------------------*/

#app {
	display: grid;
	grid-template-columns: 670px auto;
}

#title {
	grid-column-start: 1;
	grid-column-end: 3;
	grid-row: 1;
}

#main {
	grid-column: 1;
	grid-row: 2;
}

#sidebar {
	grid-column: 2;
	grid-row: 2;
	padding-left: 20px;
}

a:focus, input:focus, select:focus, textarea:focus, .title-text:focus {
	outline: 1px solid var(--vscode-focusBorder);
}

.title-text {
	margin-right: 5px;
}

 .title {
	display: flex;
	align-items: flex-start;
	margin: 20px 0;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--vscode-list-inactiveSelectionBackground);
}

.title .pr-number {
	margin-left: 5px;
}

.comment-body li div {
	display: inline;
}

.comment-body code, .comment-body a, span.lineContent {
    overflow-wrap: break-word;
}

#title:empty {
	border: none;
}

h2 {
	margin: 0;
}

body hr {
	display: block;
	height: 1px;
	border: 0;
	border-top: 1px solid #555;
	margin: 0 !important;
	padding: 0;
}

body a {
	text-decoration: none;
}

body a:hover {
	text-decoration: underline;
}

body .comment-container .avatar-container {
	margin-right: 12px;
}

body .comment-container .avatar-container a {
	display: flex;
}

body .comment-container .avatar-container img.avatar,
body .comment-container .avatar-container .avatar-icon svg {
	margin-right: 0;
}

body img.avatar,
body span.avatar-icon svg {
	width: 24px;
	height: 24px;
}

.vscode-light .avatar-icon {
	filter: invert(100%);
}

body img.avatar {
	vertical-align: middle;
}

body a.avatar-link:focus {
	outline-offset: 2px;
}

body .comment-container.comment,
body .comment-container.review {
	background-color: var(--vscode-editor-background);
}


.review-comment-container {
	width: 100%;
	display: flex;
	flex-direction: column;
	position: relative;
}

body .comment-container .review-comment-header {
	position: relative;
	display: flex;
	width: 100%;
	box-sizing: border-box;
	padding: 6px;
	font-size: 12px;
	color: var(--vscode-foreground);
	align-items: center;
	background: var(--vscode-list-inactiveSelectionBackground);
	border: 1px solid var(--vscode-list-inactiveSelectionBackground);
}

.description-header {
	float: right;
	height: 32px;
}

.review-comment-header .comment-actions {
	margin-left: auto;
}

.review-comment-header .pending {
	color: inherit;
	font-style: italic;
}

.comment-actions button {
	background-color: transparent;
	padding: 0 6px;
	line-height: normal;
	font-size: 11px;
}

.comment-actions button svg {
	margin-right: 0;
	height: 14px;
}

.status-check {
	display: flex;
	align-items: center;
	margin-top: 5px;
	margin-left: 15px;
}

.status-item, .form-actions {
	display: flex;
}

.form-actions > input[type=submit] {
	margin-left: auto;
}

.status-check-detail-text {
	margin-left: 0.7em;
}

.ready-for-review-container {
	border-top: 1px solid;
	padding-top: 10px;
}

.ready-for-review-button {
	float: right;
}

.ready-for-review-icon {
	float: left;
}

.ready-for-review-heading {
	font-size: 1.2;
	font-weight: bold;
}

.ready-for-review-meta {
	font-size: 0.9;
}

#confirm-merge {
	margin-left: auto;
}

.status-section {
	padding-bottom: 12px;
}

#status-checks a {
	margin-left: 10px;
	cursor: pointer;
}

#status-checks {
	padding: 10px;
	border: 1px solid var(--vscode-list-inactiveSelectionBackground);
	margin-top: 20px;
}

#status-checks summary {
	display: flex;
	align-items: center;
}

#status-checks svg {
	fill: var(--vscode-foreground);
	margin-right: 6px;
	width: 16px;
}

#status-checks .merge-select-container {
	display: flex;
	align-items: center;
}

#status-checks .merge-select-container > * {
	margin-right: 5px;
}

#status-checks .branch-status-container {
	display: inline-block;
}

#status-checks .branch-status-message {
	display: inline-block;
	line-height: 100%;
	padding: 0 10px;
}

body .comment-container .review-comment-header > span,
body .comment-container .review-comment-header > a,
body .commit .commit-message > a,
body .merged .merged-message > a {
	margin-right: 4px;
	white-space: nowrap;
}

body .comment-container .review-comment-container .pending-label,
body .diff .diffHeader .outdatedLabel {
		border: 1px solid;
		border-radius: 2px 2px 2px 2px;
		padding: 0.1rem 0.3rem;
		font-style: italic;
		margin-left: 5px;
}

body .diff .diffPath {
	margin-right: 4px;
}

body .comment-container .comment-body, .review-body {
	padding: 10px;
	border: 1px solid var(--vscode-list-inactiveSelectionBackground);
	border-top: none;
}

body .comment-container .review-comment-container .review-comment-body {
	padding: 0;
	margin: 0 0 0 36px;
	border: none;
}

body .comment-container .comment-body > p, body .comment-container .comment-body > div > p, .comment-container .review-body > p {
	margin-top: 0;
}

body .comment-container .comment-body > p:last-child, body .comment-container .comment-body > div > p:last-child, .comment-container .review-body > p:last-child {
	margin-bottom: 0;
}

body {
	margin: auto;
	width: 100%;
	max-width: 925px;
	padding: 0 32px;
	box-sizing: border-box;
}

body .hidden {
	display: none !important;
}

body .hidden-focusable {
	height: 0 !important;
	overflow: hidden;
}

button, input[type=submit] {
	background-color: var(--vscode-button-background);
	color: var(--vscode-button-foreground);
	border-radius: 0px;
	border: 1px solid transparent;
	outline: none;
	padding: 4px 12px;
	font-size: 13px;
	line-height: 18px;
	white-space: nowrap;
	user-select: none;
}

button:focus, input[type=submit]:focus {
	outline: 1px solid var(--vscode-focusBorder);
	outline-offset: 2px;
}

button:hover:enabled, button:focus:enabled, input[type=submit]:focus:enabled {
	background-color: var(--vscode-button-hoverBackground);
	cursor: pointer;
}

.comment-actions button:hover:enabled, .comment-actions button:focus:enabled {
	background-color: transparent;
}

body button.checkedOut {
	color: var(--vscode-foreground);
	opacity: 1 !important;
	border: none;
	background-color: transparent;
}

body button.secondary,
body button.secondary:hover {
	-webkit-filter: grayscale(100%);
	filter: grayscale(100%);
}

body button svg {
	fill: var(--vscode-button-foreground);
}

body button .icon {
	width: 1em;
	height: 1em;
	margin-right: 6px;
}

body button.checkedOut svg {
	fill: var(--vscode-foreground);
}

.prIcon {
	display: flex;
	border-radius: 10px;
	margin-right: 5px;
	margin-top: 18px;
}

.overview-title {
	display: flex;
	position: relative;
}

.overview-title h2 {
	font-size: 24px;
}

.overview-title textarea {
	min-height: 50px;
}

.overview-title .button-group {
	padding-top: 5px;
	margin-left: auto;
	display: flex;
	align-self: start;
}

.title-container {
	width: 100%;
}

.subtitle {
	display: flex;
	align-items: center;
	margin-top: 8px;
}

.subtitle .avatar,
.subtitle .avatar-icon svg {
	margin-right: 8px;
}

.subtitle .author {
	margin-right: 8px;
}

.subtitle .created-at {
	margin-left: auto;
	white-space: nowrap;
}

body .overview-title .button-group button {
	margin-left: 10px;
	display: flex;
}

#status {
	box-sizing: border-box;
	line-height: 18px;
	background: var(--vscode-badge-background);
	color: var(--vscode-badge-foreground);
	border-radius: 4px;
	padding: 2px 8px;
	margin-right: 12px;
}

.section {
	padding-bottom: 20px;
}

.section-header {
	padding-bottom: 8px;
	display: flex;
}

.section button {
	margin-left: auto;
	padding: 0;
	background: transparent;
	display: flex;
}

.section .icon {
	margin-right: 0;
}

.section .avatar-link {
	margin-right: 8px;
}

.section button:hover, .section button:focus {
	background: transparent;
}

.section svg {
	fill: var(--vscode-foreground);
	width: 16px;
	height: 16px;
	display: block;
	margin-right: 0;
}

.section-item .avatar-container {
	flex-shrink: 0;
}

.section-item .login {
	width: 129px;
	flex-shrink: 0;
}

.vscode-dark .section svg path {
	fill: #C5C5C5;
}

.vscode-light .section svg path {
	fill: #424242;
}

.section-item {
	margin-bottom: 8px;
	display: flex;
	align-items: center;
}

.section-item img.avatar {
	width: 18px;
	height: 18px;
}

.label {
	padding: 2px 0 2px 6px;
	height: 16px;
	border-radius: 2px;
	background: var(--vscode-badge-background);
	color: var(--vscode-badge-foreground);
	white-space: nowrap;
}

.commit svg {
	width: 16px;
	height: auto;
	margin-right: 8px;
	flex-shrink: 0;
	fill: var(--vscode-foreground);
}

.comment-container.commit,
.comment-container.merged {
	padding: 16px 0 0 12px;
	box-sizing: border-box
}

.commit, .review, .merged {
	display: flex;
	width: 100%;
	border: none;
	font-size: 12px;
	color: var(--vscode-foreground);
}

.review {
	margin: 0px 8px;
	padding: 4px 0;
}

.commit .commit-message,
.merged .merged-message {
	display: flex;
	align-items: center;
	line-height: 18px;
	overflow: hidden;
}

.commit .commit-message .avatar-container,
.merged .merged-message .avatar-container {
	margin-right: 4px;
	flex-shrink: 0;
}

.commit .avatar-container .avatar,
.commit .avatar-container .avatar-icon,
.commit .avatar-container .avatar-icon svg,
.merged .avatar-container .avatar,
.merged .avatar-container .avatar-icon,
.merged .avatar-container .avatar-icon svg {
	width: 18px;
	height: 18px;
}

.commit .commit-message .message,
.merged .merged-message .message {
	overflow: inherit;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.commit .sha {
	align-self: center;
	margin-left: auto;
}

.merged .merged-message .message,
.merged .inline-sha {
	margin: 0 4px 0 0;
}

.merged svg {
    width: 14px;
    height: auto;
    margin-right: 8px;
    flex-shrink: 0;
    fill: var(--vscode-foreground);
}

.details {
	display: flex;
	flex-direction: column;
	width: 100%;
}

#description .comment-container {
	padding-top: 0px;
}

.comment-container {
	position: relative;
	padding-top: 20px;
	width: 100%;
	display: flex;
	margin: 0;
}

.comment-container[data-type="commit"] {
	padding: 8px 0;
}

.comment-container[data-type="commit"] + .comment-container[data-type="commit"],
.comment-container:first-of-type {
	border-top: none;
}

.comment-body .review-comment {
	padding: 3px;
	box-sizing: border-box;
	border-top: 1px solid var(--vscode-list-inactiveSelectionBackground);
}

.review-comment-container .review-comment .review-comment-header {
	border: none;
	background: none;
}

.review-comment-container .review-comment .comment-body {
	border: none;
	padding: 4px 12px 8px 12px;
}

.comment-body .line {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	margin-bottom: 8px;
}

body .comment-form {
	padding: 20px 0 10px;
}

.review-comment-container .comment-form {
	margin: 0 0 0 36px;
	padding: 10px 0;
}

textarea, input[type='text'] {
	display: block;
	box-sizing: border-box;
	padding: 10px;
	width: 100%;
	resize: vertical;
	font-size: 13px;
	border: 1px solid var(--vscode-dropdown-border);
	background-color: var(--vscode-input-background);
	color: var(--vscode-input-foreground);
	font-family: var(--vscode-editor-font-family);
}

select {
	display: block;
	box-sizing: border-box;
	padding: 4px 12px;
	border-radius: 0;
	font-size: 13px;
	border: 1px solid var(--vscode-dropdown-border);
	background-color: var(--vscode-dropdown-background);
	color: var(--vscode-dropdown-foreground);
}

.task-list-item {
	list-style-type: none;
}

#status-checks textarea {
	margin: 10px 0;
}

textarea {
	min-height: 100px;
	max-height: 500px;
}

textarea:focus {
	outline: 1px solid var(--vscode-focusBorder);
}

.editing-form {
	padding: 5px 0;
	display: flex;
	flex-direction: column;
}

.editing-form .form-actions {
	margin-left: auto;
	padding: 5px 0;
}

.comment-form .form-actions > button,
.comment-form .form-actions > input[type=submit] {
	margin-right: 0;
	margin-left: 0;
}

.comment-form .form-actions > #request-changes {
	margin-left: auto;
}

.comment-form .form-actions > #close {
	margin-left: 0;
	margin-right: auto;
}

.form-actions {
	display: flex;
	padding-top: 10px;
}

.main-comment-form > .form-actions {
	margin-bottom: 10px;
}

body button:disabled,
input[type=submit]:disabled {
	opacity: 0.4;
}

body .comment-form .form-actions button {
	margin-right:10px;
}

.details .comment-body {
	padding: 19px 0;
}

blockquote {
	display: block;
	flex-direction: column;
	margin: 8px 0;
	padding: 8px 12px;
	border-left-width: 5px;
	border-left-style: solid;
}

blockquote p {
	margin: 8px 0;
}

blockquote p:first-child {
	margin-top: 0;
}

blockquote p:last-child {
	margin-bottom: 0;
}

.comment-body a:focus,
.comment-body input:focus,
.comment-body select:focus,
.comment-body textarea:focus {
	outline-offset: -1px;
}

.comment-body hr {
	border: 0;
	height: 2px;
	border-bottom: 2px solid;
}

.comment-body h1 {
	padding-bottom: 0.3em;
	line-height: 1.2;
	border-bottom-width: 1px;
	border-bottom-style: solid;
}

.comment-body h1, h2, h3 {
	font-weight: normal;
}

.comment-body h1 code,
.comment-body h2 code,
.comment-body h3 code,
.comment-body h4 code,
.comment-body h5 code,
.comment-body h6 code {
	font-size: inherit;
	line-height: auto;
}

.comment-body table {
	border-collapse: collapse;
}

.comment-body table > thead > tr > th {
	text-align: left;
	border-bottom: 1px solid;
}

.comment-body table > thead > tr > th,
.comment-body table > thead > tr > td,
.comment-body table > tbody > tr > th,
.comment-body table > tbody > tr > td {
	padding: 5px 10px;
}

.comment-body table > tbody > tr + tr > td {
	border-top: 1px solid;
}

code {
	font-family: Menlo, Monaco, Consolas, "Droid Sans Mono", "Courier New", monospace, "Droid Sans Fallback";
}

.comment-body body.wordWrap pre {
	white-space: pre-wrap;
}

.comment-body .mac code {
	font-size: 12px;
	line-height: 18px;
}

.comment-body pre:not(.hljs),
.comment-body pre.hljs code > div {
	padding: 16px;
	border-radius: 3px;
	overflow: auto;
}

.timestamp,
.timestamp:hover {
	color: inherit;
}

/** Theming */

.comment-body pre code {
	color: var(--vscode-editor-foreground);
}


.vscode-light .comment-body pre:not(.hljs),
.vscode-light .comment-body code > div {
	background-color: rgba(220, 220, 220, 0.4);
}

.vscode-light .comment-actions svg {
	fill: #424242;
}

.vscode-dark .comment-actions svg {
	fill: #C5C5C5;
}

.vscode-dark .comment-body pre:not(.hljs),
.vscode-dark .comment-body code > div {
	background-color: rgba(10, 10, 10, 0.4);
}

.vscode-high-contrast .comment-body pre:not(.hljs),
.vscode-high-contrast .comment-body code > div {
	background-color: rgb(0, 0, 0);
}

.vscode-high-contrast .comment-body h1 {
	border: 1px solid rgb(0, 0, 0);
}

.vscode-high-contrast .comment-container .review-comment-header, .vscode-high-contrast #status-checks {
	background: none;
	border: 1px solid var(--vscode-panel-border);
}

.vscode-high-contrast .comment-container .comment-body, .vscode-high-contrast .review-comment-container .review-body {
	border: 1px solid var(--vscode-panel-border);
}

.vscode-light .comment-body table > thead > tr > th {
	border-color: rgba(0, 0, 0, 0.69);
}

.vscode-dark .comment-body table > thead > tr > th {
	border-color: rgba(255, 255, 255, 0.69);
}

.vscode-light .comment-body h1,
.vscode-light .comment-body hr,
.vscode-light .comment-body table > tbody > tr + tr > td {
	border-color: rgba(0, 0, 0, 0.18);
}

.vscode-dark .comment-body h1,
.vscode-dark .comment-body hr,
.vscode-dark .comment-body table > tbody > tr + tr > td {
	border-color: rgba(255, 255, 255, 0.18);
}

.review-comment-body .diff-container {
	margin-top: 10px;
	border: 1px solid var(--vscode-list-inactiveSelectionBackground);
}

.review-comment-body .diff-container .review-comment-container .comment-container {
	padding-top: 0;
}

.review-comment-body .diff-container .review-comment-container .review-comment-header .avatar-container {
	margin-right: 4px;
}

.review-comment-body .diff-container .review-comment-container .review-comment-header .avatar {
	width: 18px;
	height: 18px;
}

.diff .diffHeader {
	padding: 6px 12px;
	line-height: 1.5;
	background: var(--vscode-editorGroupHeader-tabsBackground);
}

.diff .diffHeader .diffPath:hover {
	text-decoration: underline;
	color: var(--vscode-textLink-activeForeground);
	cursor: pointer;
}

.win32 .diff .diffLine {
	font-family: Consolas, Inconsolata, "Courier New", monospace;
}

.darwin .diff .diffLine {
	font-family: Monaco, Menlo, Inconsolata, "Courier New", monospace;
}

.linux .diff .diffLine {
	font-family: "Droid Sans Mono", Inconsolata, "Courier New", monospace, "Droid Sans Fallback";
}

.diff .diffLine.add {
	background-color: var(--vscode-diffEditor-insertedTextBackground);
}

.diff .diffLine.delete {
	background-color: var(--vscode-diffEditor-removedTextBackground);
}

.diff .diffLine .diffTypeSign {
	user-select: none;
	padding-right: 5px;
}

.diff .diffLine .lineNumber {
	width: 1%;
	min-width: 50px;
	padding-right: 10px;
	padding-left: 10px;
	font-size: 12px;
	line-height: 20px;
	text-align: right;
	white-space: nowrap;
	vertical-align: top;
	box-sizing: border-box;
	display: inline-block;
	user-select: none;
	font-family: var(--vscode-editor-font-family);
}

.github-checkbox {
	pointer-events: none;
}

.github-checkbox input {
	color: rgb(84, 84, 84);
	opacity: 0.6;
}

/* High Contrast Mode */

.vscode-high-contrast a:focus {
	outline-color: var(--vscode-contrastActiveBorder);
}

.vscode-high-contrast .title {
	border-bottom: 1px solid var(--vscode-contrastBorder);
}

.vscode-high-contrast button, .vscode-high-contrast input {
	outline: none;
	background: none !important;
	border: 1px solid var(--vscode-contrastBorder);
}

.vscode-high-contrast button:focus{
	border: 1px solid var(--vscode-contrastActiveBorder);
}

.vscode-high-contrast button.secondary {
	-webkit-filter: none;
}

.vscode-high-contrast .diff .diffLine {
	background: none;
}

.vscode-high-contrast .diff .diffHeader {
	background: none;
}

.vscode-high-contrast .diff-container {
	border: 1px solid var(--vscode-contrastBorder);
}

.vscode-high-contrast .diff .diffLine.add {
	border: 1px dashed var(--vscode-diffEditor-insertedTextBorder);
}

.vscode-high-contrast .diff .diffLine.delete {
	border: 1px dashed var(--vscode-diffEditor-removedTextBorder);
}

@media (max-width: 925px) {
	#app {
		display: block;
	}

	#sidebar {
		display: grid;
		column-gap: 20px;
		grid-template-columns: 50% 50%;
		padding: 0;
	}

	.section-content {
		display: flex;
		flex-wrap: wrap;
	}

	.section-item {
		margin-right: 8px;
	}

	body .hidden-focusable {
		height: initial;
		overflow: initial;
	}

	.section-header button {
		margin-left: 8px;
		display: flex;
	}

	.section-item.reviewer {
		border: 1px solid var(--vscode-badge-background);
		border-radius: 3px;
		padding: 2px 6px;
	}

	.section-item .avatar {
		border-radius: 3px
	}

	.section-item .login {
		width: auto;
		margin-right: 4px;
	}
}

.icon {
	width: 1em;
	height: 1em;
	font-size: 16px;
	margin-right: 6px;
}

.push-right {
	margin-left: auto;
}

.action-bar {
	position: absolute;
	display: flex;
	justify-content: space-between;
	z-index: 100;
	top: 9px;
	right: 9px;
}

.flex-action-bar {
	display: flex;
	justify-content: space-between;
	z-index: 100;
	margin-left: 9px;
	min-width: 42px;
}

.action-bar > button,
.flex-action-bar > button {
	margin-left: 4px;
	margin-right: 4px;
}


.remove-item {
	height: 12px;
	cursor: pointer;
}

.title-editing-form {
	flex-grow: 1;
}

.title-editing-form > .form-actions {
	margin-left: 0;
}

::-webkit-scrollbar-corner {
	display: none;
}

.author-link {
	font-weight: bolder;
	color: var(--vscode-editor-foreground)
}